/**
 * 
 */
package com.nari.interfaces.decipher.gprs.vo;

/**
 * 帧数据下发封装实体
 * @author Xiaopeng
 * @date 2014-3-31
 */
public class DistributeFrameStateSeal {
	//服务端广播标识
	public static final Integer serverState_broadcasting = 1; 
	//服务端索要帧数据
	public static final Integer serverState_requestData = 2; 
	//数据收发结束
	public static final Integer serverState_communicateFinished = 3;
	//帧下发状态
	private Integer serverState;
	private String concentratorNo;
	private int requestFrameIndex;
	
	/**
	 * 帧下发状态实例化
	 * @param serverState
	 * @param concentratorNo
	 * @param requestFrameIndex
	 * @return
	 * @author Xiaopeng
	 * @date 2014-3-31
	 */
	public synchronized static DistributeFrameStateSeal getInstance(Integer serverState, String concentratorNo, 
			Integer requestFrameIndex) {
		DistributeFrameStateSeal distributeState = new DistributeFrameStateSeal();
		distributeState.setServerState(serverState);
		distributeState.setConcentratorNo(concentratorNo);
		distributeState.setRequestFrameIndex(requestFrameIndex);
		return distributeState;
	}

	/**
	 * @return the serverState
	 */
	public Integer getServerState() {
		return serverState;
	}

	/**
	 * @param serverState the serverState to set
	 */
	public void setServerState(Integer serverState) {
		this.serverState = serverState;
	}

	/**
	 * @return the concentratorNo
	 */
	public String getConcentratorNo() {
		return concentratorNo;
	}

	/**
	 * @param concentratorNo the concentratorNo to set
	 */
	public void setConcentratorNo(String concentratorNo) {
		this.concentratorNo = concentratorNo;
	}

	/**
	 * @return the requestFrameIndex
	 */
	public int getRequestFrameIndex() {
		return requestFrameIndex;
	}

	/**
	 * @param requestFrameIndex the requestFrameIndex to set
	 */
	public void setRequestFrameIndex(int requestFrameIndex) {
		this.requestFrameIndex = requestFrameIndex;
	}
	
}
